<template>
  <div class="bg-box">
    <div class="bg">

    </div>
    <div class="bg-content">
      <slot>默认展示的内容</slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'BgBox'
}
</script>

<style lang="less" scoped>
.bg {
  height: 100px;
  background-color: #1a73e8;
}
.bg-content {
  margin: 0 10px;
  position: relative;
  top: -25px;
  background-color: #fff;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 5px;
}
</style>